package com.wans.apis.huiniao.client;

import com.wans.apis.huiniao.fallback.ThirdPartyApiClientFallback;
import com.wans.model.feign.huiniao.dtos.QueryPram;
import com.wans.model.feign.huiniao.dtos.HuiResponseResult;
import com.wans.model.feign.huiniao.dtos.SSQData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(url = "https://api.huiniao.top/interface/home/lotteryHistory",
        value = "thirdapi", fallback = ThirdPartyApiClientFallback.class)
public interface ThirdPartyApiClient {

    @GetMapping
    HuiResponseResult<SSQData> getData(@SpringQueryMap QueryPram queryPram);
}